﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UTSDAL.LINQSQL.Model;

namespace UTSDAL.LINQSQL.DAO
{
    public class SettingsDAO
    {

        public TimeSpan getStartTime()
        {
            return TimeSpan.Parse("08:30");

        }

        public TimeSpan getEndTime()
        {
            return TimeSpan.Parse("20:30");
        }


        /// <summary>
        /// provides a date that is equivalebt to the course day in the timetable event
        /// </summary>
        /// <param name="timetableEvent"></param>
        /// <returns></returns>
        public DateTime getSampleDateForTimetableEvent(TimetableEvent timetableEvent)
        {

            String courseDayName = timetableEvent.CourseDay.CourseDayName;
            DateTime sample = DateTime.Now;

            switch (courseDayName)
            {
                case "Monday":
                    sample = new DateTime(2009, 3, 23);
                    break;
                case "Tuesday":
                    sample = new DateTime(2009, 3, 24);
                    break;
                case "Wednesday":
                    sample = new DateTime(2009, 3, 25);
                    break;
                case "Thursday":
                    sample = new DateTime(2009, 3, 26);
                    break;
                case "Friday":
                    sample = new DateTime(2009, 3, 27);
                    break;
                case "Saturday":
                    sample = new DateTime(2009, 3, 28);
                    break;
                case "Sunday":
                    sample = new DateTime(2009, 3, 29);
                    break;
                default:
                    break;
            }

            return sample;


        }
        

        


    }
}
